import _fetch from './request'

function getPhoneCodeApi(data) {
    return _fetch({
        url: "/sendsms",
        method: "post",
        data
    })
}

function registerUser(data) {
    return _fetch({
        url: '/register',
        method: 'post',
        data
    })
}

export {
    getPhoneCodeApi,
    registerUser
}